package com.xiaoshuidi.cloud.module.contract.enums.bill;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OwnerTransferStatusEnum {
    SUBMIT("待处理"),
    WAITING("处理中"),
    SUCCESS("已处理"),
    FAILURE("付款失败");

    private final String name;

    public static String getDesc(String name) {
        for (OwnerTransferStatusEnum value : values()) {
            if (value.name().equals(name)) {
                return value.getName();
            }
        }
        return "";
    }
}
